import styled from "styled-components";
import style from "../../assets/globalStyle";

export const ListWrapper = styled.div`
  padding: 0 6px;
  .title {
    font-size: 16px;
    font-weight: bold;
    line-height: 50px;
  }
`;

export const List = styled.div`
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
`;

export const ListItem = styled.div`
  position: relative;
  width: 32%;
  .decorate {
    position: absolute;
    top: 0;
    width: 100%;
    height: 35px;
    border-radius: 3px;
    background: linear-gradient(hsla(0, 0%, 43%, 0.4), hsla(0, 0%, 100%, 0));
  }
  img {
    width: 100%;
    border-radius: 5px;
    /* height: 35px;  */
  }
  .play_count {
    position: absolute;
    right: 4px;
    top: 3px;
    font-size: ${style["font-size-s"]};
    line-height: 15px;
    color: ${style["font-color-light"]};
    .play {
      vertical-align: top;
    }
  }
  .desc {
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    text-align: left;
    margin: 3px 0 5px;
    font-size: ${style["font-size-s"]};
    color: ${style["font-color-desc"]};
  }
`;
